package com.example.videoplayer.service;

import com.example.videoplayer.model.Video;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.http.codec.multipart.FilePart;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.List;

public interface VideoService {
    Mono<ResponseEntity<Resource>> streamVideo(String fileName, String range);
    Mono<Video> uploadVideo(FilePart file, String title, String category, String description);
    Mono<String> getHLSStreamUrl(String fileName);
    Flux<Video> getAllVideos(int page, int size);
    Flux<Video> getVideosByCategory(String category, int page, int size);
    Mono<Video> getVideoById(Long id);
    Mono<List<String>> getAllCategories();
} 